package com.zjj.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;

import javax.sql.DataSource;

public class JdbcConfig {
    @Value("${name}")
    private String name;

    @Value("${newname}")
    private String newname;

    @Value("${money}")
    private int money;

    @Value("${newmoeny}")
    private int newmoeny;

    @Value("${color}")
    private String color;

//    @Bean
//    public DataSource dataSource() {
//        DruidDataSource dataSource = new DruidDataSource();
//        dataSource.setName(name);
//        dataSource.setName(newname);
//        dataSource.set
//
//    }
}
